package edu.seu.mart.dao;

import edu.seu.mart.entity.Pager;
import edu.seu.mart.model.Goods;

import java.util.List;

/**
 * Created by zj on 2015/3/11.
 */
public interface IGoodsDao extends IBaseDao<Goods> {
    public Pager<Goods> findGoods();
    public Pager<Goods> findGoods(String name);
    public Pager<Goods> findMatchedGoods(String query,String categroy,String saleOrder,String priceOrder);
    public Pager<Goods> findGoodsByNameOrBrand(String name);
    public Pager<Goods> findGoodsByCategory(String name);
    public Pager<Goods> findGoods(int i);
    public List<Goods> findRecommendGoods(String query, String category);
    Pager<Goods> findGoodsListBySellerId(int sellID,String flag);
    Pager<Goods> findGoodsByCategory(String category, String brand, String price, String cpu, String saleOrder, String priceOrder);

    List<Goods> findAllGoods();
}
